
<!DOCTYPE html>
<html>
<head>
    
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!--360浏览器优先以webkit内核解析-->


<title>新增周销售计划详情</title>

<link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
<link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="__STATIC__/layout/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
<link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
<link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
<link href="__STATIC__/layout/css/channel.css?v=4.1.0" rel="stylesheet">
<!-- Sweet Alert -->
<link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
<link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
<link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">


    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body style="color:#333;padding:3px;">
<div class="page-heade clearfix">
    <h2 class="title_color text-center">
        新增周销售计划详情
    </h2>
</div>
<!-- 标题 -->
<!--<div class="page-heade">
    <h1 class="title_color">TI费用核销面单查询</h1>
</div>-->
<!-- 标题 -->
<div class="row-margin-top">
    <form action="" class="form-inline"  id="form1">
        <table class="table table-bordered text-right" id="verifytable">
            <tr>
                <td style="width: 160px">日期<span class="colorRed">*</span></td>
                <td class="text-left"><input type="text" class="form-control layer-date" id="daytime"></td>  
            </tr>
             <tr>
                <td style="width: 160px">问题<span class="colorRed">*</span></td>
                <td class="text-left">
                  <textarea name="" id="" style="width: 50%;height: 40px;user-select:none;" class="form-control"></textarea>  
                </td>  
            </tr>
             <tr>
                <td style="width: 160px">措施和方法<span class="colorRed">*</span></td>
                <td class="text-left">
                  <textarea name="" id="" style="width: 50%;height: 40px;user-select:none" class="form-control"></textarea>  
                </td>  
            </tr>
        </table>
        <div class="page-heade clearfix">
             <h2 class="title_color text-center font-bold" style="font-size:12px;">
                 本周沟通计划<span class="colorRed">*</span>
             </h2>
        </div>
        <table class="table-bordered table" id="thisweek">
            <tr class="info">
                <th class="text-center">序号</th>
                <th class="text-center">沟通项目</th>
                <th class="text-center">沟通内容</th>
                <th class="text-center">沟通编号</th>
                <th class="text-center">沟通结果</th>
                <th class="text-center"><a href="javascript:;" class="btn btn-sm btn-info" id="addthisWT">添加</a></th>
            </tr>
            <tr>
                <td>1</td>
                <td>
                    <div class="form-group">
                        <input type="text" class="form-control" name="" id=""><a href="javascript:;">选择</a>
                    </div>
                </td>
                <td><input type="text" class="form-control " name="" id=""></td>
                 <td style="width: 13%"></td>
                <td>
                    <textarea name="" id="" style="width: 100%;height: 40px;user-select:none" class="form-control"></textarea>
                </td>
                <td><button class="btn btn-danger btn-sm delthis" type="button">删除</button></td>
            </tr>
        </table>
           <div class="page-heade clearfix">
             <h2 class="title_color text-center font-bold" style="font-size:12px;">
                 下周沟通计划
             </h2>
        </div>
        <table class="table-bordered table" id="nextweek">
            <tr class="info">
                <th class="text-center">序号</th>
                <th class="text-center">沟通项目</th>
                <th class="text-center">沟通内容</th>
                <th class="text-center">沟通编号</th>
                <th class="text-center">沟通结果</th>
                <th class="text-center"><a href="javascript:;" class="btn btn-sm btn-info" id="addnextWT">添加</a></th>
            </tr>
           
        </table>

        <div class="padding-10 text-center">
            <button class="btn btn-primary btn-sm">保存</button><span class="lr_5"></span>
            <button class="btn btn-warning btn-sm" type="button" id="fanhui">返回</button>
        </div>
  </form>
       <!--  <h5 class="text-center"  style="font-size: 13px;font-weight: 500">
                    总共有12条记录，第1/2页,当前页<input id="page" type="text"  style="width: 40px" value="1"/><span id="gopage">Go</span>&nbsp;&nbsp;<span id="fistpage">首页</span>&nbsp;&nbsp;
                    每页显示
                    <select id="pagesize">
                        <option value='10' selected>10条</option>
                        <option value='15'>15条</option>
                        <option value='20'>20条</option>

                    </select>
                </h5> -->

</div>
<!-- 全局js -->
<script src="__STATIC__/layout/js/jquery.min.js"></script>
<script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
<!-- Sweet alert -->
<script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
<script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
<script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
<script>
    $(function () {
        $('body').on('click','input[type=text]',function () {
            this.select()
        });

          $('#fanhui').on('click',function () {
//                    parent.layer.close(parent.layer.getFrameIndex(window.name))
                    parent.location.reload();
                    return false
                });


    /*日期*/
       laydate({
            elem: '#daytime',
            event: 'focus' 
        });

       /*thisweek添加和删除*/
       $("#addthisWT").click(function(){
            var len = $("#thisweek tbody tr").length
            var str = ' <tr>'+
                '<td>'+len+++'</td>'+
                '<td>'+
                    '<div class="form-group">'+
                        '<input type="text" class="form-control" name="" id=""><a href="javascript:;">选择</a>'+
                    '</div>'+
                '</td>'+
                '<td><input type="text" class="form-control " name="" id=""></td>'+
                 '<td style="width: 13%"></td>'+
                '<td>'+
                    '<textarea name="" id="" style="width: 100%;height: 40px;user-select:none" class="form-control"></textarea>'+
                '</td>'+
                '<td><button class="btn btn-danger btn-sm delthis" type="button">删除</button></td>'+
            '</tr>';

            $("#thisweek tbody").append(str)
       })


    })
    $(document).on("click",'.delthis',function(){
            var len = $("#thisweek tbody tr").length;
           if(len<3){
                alert('至少保留一条数据')
           }else{
             $(this).parent().parent().remove();
           }
            // alert(1)
         })

    $("#addnextWT").click(function(){
         var len = $("#nextweek tbody tr").length
            var str = ' <tr>'+
                '<td>'+len+++'</td>'+
                '<td>'+
                    '<div class="form-group">'+
                        '<input type="text" class="form-control" name="" id=""><a href="javascript:;">选择</a>'+
                    '</div>'+
                '</td>'+
                '<td><input type="text" class="form-control " name="" id=""></td>'+
                 '<td style="width: 13%"></td>'+
                '<td>'+
                    '<textarea name="" id="" style="width: 100%;height: 40px;user-select:none" class="form-control"></textarea>'+
                '</td>'+
                '<td><button class="btn btn-danger btn-sm delthis" type="button">删除</button></td>'+
            '</tr>';

            $("#nextweek tbody").append(str)
    })
</script>

<script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<!--统计代码，可删除-->

<script>

</script>
</body>

</html>
